from django.db import models


# Create your models here.
class Cla(models.Model):
    cid = models.AutoField(primary_key=True)
    name = models.CharField(max_length=32, unique=True)


class Student(models.Model):
    sid = models.AutoField(primary_key=True)
    name = models.CharField(max_length=32)
    cla = models.ForeignKey('Cla', on_delete=models.SET_NULL, null=True)
